package com.bac.rentmap.ad.flat.proccess;

import com.bac.rentmap.ad.flat.FlatAd;

/**
 * Deletes {@link FratAds} older than <code>maxAgeInDays</code>. If not
 * configured deletes all ads.
 * 
 * @author Andrew Osipenko
 */
public class OldFlatAdProccessor extends AbstractOldItemProcessor implements
        FlatAdProccessor {

    @Override
    protected Class<?> getPersistentClass() {
        return FlatAd.class;
    }

    @Override
    protected String getDatePropertyName() {
        return "lastPublishingDate";
    }

}
